package com.patterns.factory.abstracts;

/**
 * @author fwj
 * @date 2020/12/8 17:53
 **/
public class AbstractFactoryDemo {

    public static void main(String[] args) {
        AbstractFactory abstractFactory;

        abstractFactory = new CircleFactory();
        abstractFactory.createShape();
        abstractFactory.createColor();

        abstractFactory = new SquareFactory();
        abstractFactory.createShape();
        abstractFactory.createColor();
    }

}
